home *** CD-ROM | disk | FTP | other *** search
- on enterFrame
- global x, y, r, theta
- if the hilite of cast "Degrees" then
- set theta to float(field "Theta") * PI / 180.0
- else
- set theta to float(field "Theta")
- end if
- set the floatPrecision to 1
- put r * cos(theta) into field "X"
- put r * sin(theta) into field "Y"
- set the floatPrecision to 3
- put cos(theta) into field "Cos"
- put sin(theta) into field "Sin"
- set the textSize of field "X" to 32
- set the textSize of field "Y" to 32
- set the textSize of field "R" to 32
- set the textSize of field "Theta" to 32
- set the textStyle of field "X" to "bold"
- set the textStyle of field "Y" to "bold"
- set the textStyle of field "R" to "bold"
- set the textStyle of field "Theta" to "bold"
- end
-